#!/bin/sh

case $1 in
  --version)
    echo @PACKAGE_VERSION@;;
  --prefix)
    echo @prefix@;;
  --libs)
    echo -L@LIBDIR@ -lSherpaMain @CONDITIONAL_HEPMC2LIBS@ @CONDITIONAL_HEPMC3LIBS@ @CONDITIONAL_RIVETLDADD@ @CONDITIONAL_FASTJETLIBS@ @CONDITIONAL_ROOTLIBS@ @CONDITIONAL_LHAPDFLIBS@;;
  --python-libs)
    echo @PYLIBDIR@;;
  --load-mpi4py)
    echo @LOADMPIFORPY@;;
  --incdir)
    echo @INCLUDEDIR@;;
  --libdir)
    echo @LIBDIR@;;
  --datadir)
    echo @DATADIR@;;
  --ldflags)
    echo -L@LIBDIR@ -lSherpaMain @CONDITIONAL_HEPMC2LIBS@ @CONDITIONAL_HEPMC3LIBS@ @CONDITIONAL_RIVETLDADD@ @CONDITIONAL_FASTJETLIBS@ @CONDITIONAL_ROOTLIBS@ @CONDITIONAL_LHAPDFLIBS@;;
  --cppflags)
    echo -I@INCLUDEDIR@ @CONDITIONAL_HEPMC2INCS@ @CONDITIONAL_HEPMC3INCS@ @CONDITIONAL_RIVETCPPFLAGS@ @CONDITIONAL_FASTJETINCS@ @CONDITIONAL_ROOTFLAGS@ @CONDITIONAL_LHAPDFINCS@;;
  --cxx)
    echo @CXX@;;
  --fc)
    echo @FC@;;
  *)
    echo "Sherpa-config: configuration tool for the Monte Carlo";
    echo "               event generator Sherpa: http://sherpa.hepforge.org";
    echo "Options:";
    echo "  Sherpa-config --version     : returns Sherpa version";
    echo "  Sherpa-config --prefix      : returns the installation path";
    echo "  Sherpa-config --incdir      : returns the path of Sherpa headers";
    echo "  Sherpa-config --libs        : returns the linker line to link with Sherpa";
    echo "  Sherpa-config --datadir     : returns the path of Sherpa data (like Decaydata, PDFs)";
    echo "  Sherpa-config --ldflags     : returns the LDFLAGS used for Sherpa";
    echo "  Sherpa-config --cppflags    : returns the preprocessor FLAGS needed for Sherpa headers";
    echo "  Sherpa-config --cxx         : returns the C++ compiler used";
    echo "  Sherpa-config --fc          : returns the FORTRAN compiler used";
    echo "  Sherpa-config --python-libs : returns the installation path of python libraries";;
esac

